export default function warningCounts(warnings) {
	const ret = {
		warningCount: warnings.filter(x => !x.ignoredTime).length,
		warningResolvedCount: warnings.filter(x => !x.ignoredTime && x.isResolved)
			.length,
	};
	ret.warningUnresolvedCount = ret.warningCount - ret.warningResolvedCount;

	return ret;
}
